source 'https://rubygems.org'

platforms :rbx do
  gem 'psych'
  gem 'rubinius-coverage', '~> 2.0'
end

group :test do
  gem 'railties', '~> 3.2', '< 4.0'
  case ENV['ADAPTER']
  when nil, 'active_record'
    gem 'activerecord-jdbcsqlite3-adapter', '>= 1.3.0.rc', :platform => 'jruby'
    #Fix sqlite3 version for rbx until rubinus is updated
    #https://github.com/travis-ci/travis-ci/issues/2006
    gem 'sqlite3', '1.3.8', :platform => 'ruby'
    gem 'activerecord', '~> 3.2.0', :require => 'active_record'
  when 'mongoid'
    gem 'mongoid', '>= 3.1'
    gem 'bson_ext', :platform => 'ruby'
  else
    raise "Unknown model adapter: #{ENV['ADAPTER']}"
  end

  gem 'coveralls', :require => false
end

gemspec :path => '../'
